// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false


import { AlertPlugin } from 'vux'
Vue.use(AlertPlugin)

import { AjaxPlugin } from "vux";
Vue.use(AjaxPlugin);
// 过滤器
// import {imgFil} from "./util/filters.js";
// Vue.filter("imgFil",imgFil);

// import {imgDil} from "./util/filters.js";
// Vue.filter("imgDil",imgDil);



/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
var w = document.documentElement.clientWidth;
document.documentElement.style.fontSize = w / 32 + "px";

window.onresize = function () {
  var w = document.documentElement.clientWidth;
  document.documentElement.style.fontSize = w / 32 + "px";
}